package com.grao.waterschool.human.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.grao.waterschool.human.entiry.vo.CapturePicList;
import com.grao.waterschool.human.manager.service.CapturePicService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Tag(name = "ICC图片监控操作/用于后台自动监控")
@RestController
@RequestMapping("/capturePic/")
public class ICCCapturePicPlanController {

    @Autowired
    private CapturePicService capturePicService;

    @SaCheckPermission(orRole = {"super-admin, admin"})
    @PostMapping("plan")
    public List<String> capturePicPlan() throws Exception {
        Integer userId = 18012;
        CapturePicList capturePicList = new CapturePicList();
        return capturePicService.capturePic(userId, capturePicList);
    }

}
